home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / ld / ldgram.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-13  |  63.1 KB  |  1,951 lines

  1.  
  2. /*  A Bison parser, made from ./ldgram.y with Bison version GNU Bison version 1.22
  3.   */
  4.  
  5. #define YYBISON 1  /* Identify Bison output.  */
  6.  
  7. #define    INT    258
  8. #define    NAME    259
  9. #define    PLUSEQ    260
  10. #define    MINUSEQ    261
  11. #define    MULTEQ    262
  12. #define    DIVEQ    263
  13. #define    LSHIFTEQ    264
  14. #define    RSHIFTEQ    265
  15. #define    ANDEQ    266
  16. #define    OREQ    267
  17. #define    OROR    268
  18. #define    ANDAND    269
  19. #define    EQ    270
  20. #define    NE    271
  21. #define    LE    272
  22. #define    GE    273
  23. #define    LSHIFT    274
  24. #define    RSHIFT    275
  25. #define    UNARY    276
  26. #define    END    277
  27. #define    ALIGN_K    278
  28. #define    BLOCK    279
  29. #define    QUAD    280
  30. #define    LONG    281
  31. #define    SHORT    282
  32. #define    BYTE    283
  33. #define    SECTIONS    284
  34. #define    SIZEOF_HEADERS    285
  35. #define    OUTPUT_FORMAT    286
  36. #define    FORCE_COMMON_ALLOCATION    287
  37. #define    OUTPUT_ARCH    288
  38. #define    INCLUDE    289
  39. #define    MEMORY    290
  40. #define    DEFSYMEND    291
  41. #define    NOLOAD    292
  42. #define    DSECT    293
  43. #define    COPY    294
  44. #define    INFO    295
  45. #define    OVERLAY    296
  46. #define    DEFINED    297
  47. #define    TARGET_K    298
  48. #define    SEARCH_DIR    299
  49. #define    MAP    300
  50. #define    ENTRY    301
  51. #define    SIZEOF    302
  52. #define    NEXT    303
  53. #define    ADDR    304
  54. #define    STARTUP    305
  55. #define    HLL    306
  56. #define    SYSLIB    307
  57. #define    FLOAT    308
  58. #define    NOFLOAT    309
  59. #define    ORIGIN    310
  60. #define    FILL    311
  61. #define    LENGTH    312
  62. #define    CREATE_OBJECT_SYMBOLS    313
  63. #define    INPUT    314
  64. #define    GROUP    315
  65. #define    OUTPUT    316
  66. #define    CONSTRUCTORS    317
  67. #define    ALIGNMOD    318
  68. #define    AT    319
  69. #define    PROVIDE    320
  70. #define    CHIP    321
  71. #define    LIST    322
  72. #define    SECT    323
  73. #define    ABSOLUTE    324
  74. #define    LOAD    325
  75. #define    NEWLINE    326
  76. #define    ENDWORD    327
  77. #define    ORDER    328
  78. #define    NAMEWORD    329
  79. #define    FORMAT    330
  80. #define    PUBLIC    331
  81. #define    BASE    332
  82. #define    ALIAS    333
  83. #define    TRUNCATE    334
  84. #define    REL    335
  85. #define    INPUT_SCRIPT    336
  86. #define    INPUT_MRI_SCRIPT    337
  87. #define    INPUT_DEFSYM    338
  88.  
  89. #line 21 "./ldgram.y"
  90.  
  91. /*
  92.  
  93.  */
  94.  
  95. #define DONTDECLARE_MALLOC
  96.  
  97. #include "bfd.h"
  98. #include "sysdep.h"
  99. #include "bfdlink.h"
  100. #include "ld.h"    
  101. #include "ldexp.h"
  102. #include "ldver.h"
  103. #include "ldlang.h"
  104. #include "ldemul.h"
  105. #include "ldfile.h"
  106. #include "ldmisc.h"
  107. #include "ldmain.h"
  108. #include "mri.h"
  109. #include "ldlex.h"
  110.  
  111. static int typebits;
  112.  
  113. lang_memory_region_type *region;
  114.  
  115.  
  116. char *current_file;
  117. boolean ldgram_want_filename = true;
  118. boolean had_script = false;
  119. boolean force_make_executable = false;
  120.  
  121. boolean ldgram_in_script = false;
  122. boolean ldgram_had_equals = false;
  123.  
  124.  
  125. #define ERROR_NAME_MAX 20
  126. static char *error_names[ERROR_NAME_MAX];
  127. static int error_index;
  128. #define PUSH_ERROR(x) if (error_index < ERROR_NAME_MAX) error_names[error_index] = x; error_index++;
  129. #define POP_ERROR()   error_index--;
  130.  
  131. #line 62 "./ldgram.y"
  132. typedef union {
  133.   bfd_vma integer;
  134.   char *name;
  135.   int token;
  136.   union etree_union *etree;
  137. } YYSTYPE;
  138.  
  139. #ifndef YYLTYPE
  140. typedef
  141.   struct yyltype
  142.     {
  143.       int timestamp;
  144.       int first_line;
  145.       int first_column;
  146.       int last_line;
  147.       int last_column;
  148.       char *text;
  149.    }
  150.   yyltype;
  151.  
  152. #define YYLTYPE yyltype
  153. #endif
  154.  
  155. #include <stdio.h>
  156.  
  157. #ifndef __cplusplus
  158. #ifndef __STDC__
  159. #define const
  160. #endif
  161. #endif
  162.  
  163.  
  164.  
  165. #define    YYFINAL        372
  166. #define    YYFLAG        -32768
  167. #define    YYNTBASE    107
  168.  
  169. #define YYTRANSLATE(x) ((unsigned)(x) <= 338 ? yytranslate[x] : 168)
  170.  
  171. static const char yytranslate[] = {     0,
  172.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  173.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  174.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  175.      2,     2,   105,     2,     2,     2,    33,    20,     2,    36,
  176.    102,    31,    29,   100,    30,     2,    32,     2,     2,     2,
  177.      2,     2,     2,     2,     2,     2,     2,    15,   101,    23,
  178.      9,    24,    14,     2,     2,     2,     2,     2,     2,     2,
  179.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  180.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  181.    103,     2,   104,    19,     2,     2,     2,     2,     2,     2,
  182.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  183.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  184.      2,     2,    44,    18,    45,   106,     2,     2,     2,     2,
  185.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  186.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  187.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  188.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  189.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  190.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  191.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  192.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  193.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  194.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  195.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  196.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  197.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  198.      6,     7,     8,    10,    11,    12,    13,    16,    17,    21,
  199.     22,    25,    26,    27,    28,    34,    35,    37,    38,    39,
  200.     40,    41,    42,    43,    46,    47,    48,    49,    50,    51,
  201.     52,    53,    54,    55,    56,    57,    58,    59,    60,    61,
  202.     62,    63,    64,    65,    66,    67,    68,    69,    70,    71,
  203.     72,    73,    74,    75,    76,    77,    78,    79,    80,    81,
  204.     82,    83,    84,    85,    86,    87,    88,    89,    90,    91,
  205.     92,    93,    94,    95,    96,    97,    98,    99
  206. };
  207.  
  208. #if YYDEBUG != 0
  209. static const short yyprhs[] = {     0,
  210.      0,     3,     6,     9,    11,    12,    17,    18,    21,    25,
  211.     26,    29,    34,    36,    38,    41,    43,    48,    53,    57,
  212.     60,    65,    69,    74,    79,    84,    87,    90,    93,    98,
  213.    103,   106,   109,   110,   114,   117,   118,   120,   124,   126,
  214.    130,   131,   134,   137,   138,   140,   142,   144,   146,   148,
  215.    150,   152,   154,   159,   164,   169,   174,   183,   188,   190,
  216.    195,   196,   202,   207,   208,   214,   216,   220,   223,   228,
  217.    231,   234,   235,   240,   243,   245,   249,   251,   252,   257,
  218.    258,   264,   265,   271,   274,   276,   278,   280,   282,   287,
  219.    292,   295,   297,   298,   300,   302,   304,   306,   308,   311,
  220.    312,   314,   316,   318,   320,   322,   324,   326,   328,   330,
  221.    332,   336,   340,   347,   349,   350,   356,   359,   363,   364,
  222.    365,   373,   377,   381,   385,   386,   391,   396,   400,   404,
  223.    406,   411,   415,   416,   418,   420,   421,   424,   427,   431,
  224.    436,   439,   442,   445,   449,   453,   457,   461,   465,   469,
  225.    473,   477,   481,   485,   489,   493,   497,   501,   505,   509,
  226.    515,   519,   523,   528,   530,   532,   537,   542,   547,   552,
  227.    557,   559,   564,   565,   566,   567,   568,   569,   570,   585,
  228.    587,   589,   591,   593,   595,   596,   599,   605,   607,   612,
  229.    615
  230. };
  231.  
  232. static const short yyrhs[] = {    97,
  233.    118,     0,    98,   111,     0,    99,   109,     0,     4,     0,
  234.      0,   110,     4,     9,   157,     0,     0,   112,   113,     0,
  235.    113,   114,    87,     0,     0,    82,   157,     0,    82,   157,
  236.    100,   157,     0,     4,     0,    83,     0,    89,   115,     0,
  237.     88,     0,    92,     4,     9,   157,     0,    92,     4,   100,
  238.    157,     0,    92,     4,   157,     0,    91,     4,     0,    84,
  239.      4,   100,   157,     0,    84,     4,   157,     0,    84,     4,
  240.      9,   157,     0,    37,     4,     9,   157,     0,    79,     4,
  241.      9,   157,     0,    85,   117,     0,    86,   116,     0,    90,
  242.      4,     0,    94,     4,   100,     4,     0,    94,     4,   100,
  243.      3,     0,    93,   157,     0,    95,     3,     0,     0,   115,
  244.    100,     4,     0,   115,     4,     0,     0,     4,     0,   116,
  245.    100,     4,     0,     4,     0,   117,   100,     4,     0,     0,
  246.    119,   120,     0,   120,   121,     0,     0,   142,     0,   125,
  247.      0,   149,     0,   150,     0,   152,     0,   154,     0,   127,
  248.      0,   101,     0,    59,    36,     4,   102,     0,    60,    36,
  249.    108,   102,     0,    77,    36,   108,   102,     0,    47,    36,
  250.      4,   102,     0,    47,    36,     4,   100,     4,   100,     4,
  251.    102,     0,    49,    36,     4,   102,     0,    48,     0,    75,
  252.     36,   124,   102,     0,     0,    76,   122,    36,   124,   102,
  253.      0,    61,    36,   108,   102,     0,     0,    50,   108,   123,
  254.    120,    35,     0,     4,     0,   124,   100,     4,     0,   124,
  255.      4,     0,    43,    44,   126,    45,     0,   126,   159,     0,
  256.    126,   127,     0,     0,    62,    36,     4,   102,     0,   140,
  257.    139,     0,     4,     0,   128,   141,     4,     0,     4,     0,
  258.      0,   103,   130,   128,   104,     0,     0,     4,   131,    36,
  259.    128,   102,     0,     0,    31,   132,    36,   128,   102,     0,
  260.    140,   139,     0,    74,     0,   101,     0,    78,     0,   129,
  261.      0,   136,    36,   157,   102,     0,    72,    36,   157,   102,
  262.      0,   134,   133,     0,   133,     0,     0,   134,     0,    39,
  263.      0,    40,     0,    41,     0,    42,     0,     9,   155,     0,
  264.      0,     5,     0,     6,     0,     7,     0,     8,     0,    10,
  265.      0,    11,     0,    12,     0,    13,     0,   101,     0,   100,
  266.      0,     4,     9,   155,     0,     4,   138,   155,     0,    81,
  267.     36,     4,     9,   155,   102,     0,   100,     0,     0,    51,
  268.     44,   144,   143,    45,     0,   143,   144,     0,   143,   100,
  269.    144,     0,     0,     0,     4,   145,   148,    15,   146,   141,
  270.    147,     0,    71,     9,   155,     0,    73,     9,   155,     0,
  271.     36,     4,   102,     0,     0,    66,    36,   108,   102,     0,
  272.     67,    36,   151,   102,     0,    67,    36,   102,     0,   151,
  273.    141,   108,     0,   108,     0,    68,    36,   153,   102,     0,
  274.    153,   141,   108,     0,     0,    69,     0,    70,     0,     0,
  275.    156,   157,     0,    30,   157,     0,    36,   157,   102,     0,
  276.     64,    36,   157,   102,     0,   105,   157,     0,    29,   157,
  277.      0,   106,   157,     0,   157,    31,   157,     0,   157,    32,
  278.    157,     0,   157,    33,   157,     0,   157,    29,   157,     0,
  279.    157,    30,   157,     0,   157,    27,   157,     0,   157,    28,
  280.    157,     0,   157,    21,   157,     0,   157,    22,   157,     0,
  281.    157,    25,   157,     0,   157,    26,   157,     0,   157,    23,
  282.    157,     0,   157,    24,   157,     0,   157,    20,   157,     0,
  283.    157,    19,   157,     0,   157,    18,   157,     0,   157,    14,
  284.    157,    15,   157,     0,   157,    17,   157,     0,   157,    16,
  285.    157,     0,    58,    36,     4,   102,     0,     3,     0,    46,
  286.      0,    63,    36,     4,   102,     0,    65,    36,     4,   102,
  287.      0,    85,    36,   157,   102,     0,    37,    36,   157,   102,
  288.      0,    38,    36,   157,   102,     0,     4,     0,    80,    36,
  289.    157,   102,     0,     0,     0,     0,     0,     0,     0,     4,
  290.    160,   166,   158,   161,    44,   162,   135,    45,   163,   167,
  291.    137,   164,   141,     0,    53,     0,    54,     0,    55,     0,
  292.     56,     0,    57,     0,     0,   157,    15,     0,   157,    36,
  293.    165,   102,    15,     0,    15,     0,    36,   165,   102,    15,
  294.      0,    24,     4,     0,     0
  295. };
  296.  
  297. #endif
  298.  
  299. #if YYDEBUG != 0
  300. static const short yyrline[] = { 0,
  301.    115,   117,   118,   122,   125,   127,   134,   139,   144,   146,
  302.    149,   151,   152,   155,   158,   159,   160,   162,   164,   166,
  303.    168,   170,   172,   174,   176,   178,   179,   180,   182,   184,
  304.    186,   188,   190,   193,   195,   196,   199,   202,   205,   208,
  305.    212,   217,   223,   225,   230,   232,   233,   234,   235,   236,
  306.    237,   238,   239,   241,   243,   245,   248,   250,   252,   254,
  307.    255,   257,   259,   261,   262,   265,   269,   272,   277,   281,
  308.    283,   284,   287,   290,   293,   296,   300,   305,   310,   311,
  309.    315,   316,   320,   323,   325,   329,   330,   335,   336,   341,
  310.    351,   353,   356,   358,   361,   364,   366,   368,   372,   380,
  311.    385,   388,   390,   392,   394,   396,   398,   400,   405,   405,
  312.    409,   414,   422,   429,   430,   433,   437,   439,   440,   444,
  313.    446,   449,   455,   464,   469,   473,   478,   480,   484,   487,
  314.    492,   494,   497,   500,   503,   508,   510,   513,   516,   518,
  315.    520,   522,   524,   527,   529,   531,   533,   535,   537,   539,
  316.    541,   543,   545,   547,   549,   551,   553,   555,   557,   559,
  317.    561,   563,   565,   567,   569,   572,   574,   576,   578,   580,
  318.    582,   587,   589,   592,   594,   596,   600,   600,   607,   609,
  319.    611,   612,   613,   614,   615,   619,   621,   622,   623,   626,
  320.    629
  321. };
  322.  
  323. static const char * const yytname[] = {   "$","error","$illegal.","INT","NAME",
  324. "PLUSEQ","MINUSEQ","MULTEQ","DIVEQ","'='","LSHIFTEQ","RSHIFTEQ","ANDEQ","OREQ",
  325. "'?'","':'","OROR","ANDAND","'|'","'^'","'&'","EQ","NE","'<'","'>'","LE","GE",
  326. "LSHIFT","RSHIFT","'+'","'-'","'*'","'/'","'%'","UNARY","END","'('","ALIGN_K",
  327. "BLOCK","QUAD","LONG","SHORT","BYTE","SECTIONS","'{'","'}'","SIZEOF_HEADERS",
  328. "OUTPUT_FORMAT","FORCE_COMMON_ALLOCATION","OUTPUT_ARCH","INCLUDE","MEMORY","DEFSYMEND",
  329. "NOLOAD","DSECT","COPY","INFO","OVERLAY","DEFINED","TARGET_K","SEARCH_DIR","MAP",
  330. "ENTRY","SIZEOF","NEXT","ADDR","STARTUP","HLL","SYSLIB","FLOAT","NOFLOAT","ORIGIN",
  331. "FILL","LENGTH","CREATE_OBJECT_SYMBOLS","INPUT","GROUP","OUTPUT","CONSTRUCTORS",
  332. "ALIGNMOD","AT","PROVIDE","CHIP","LIST","SECT","ABSOLUTE","LOAD","NEWLINE","ENDWORD",
  333. "ORDER","NAMEWORD","FORMAT","PUBLIC","BASE","ALIAS","TRUNCATE","REL","INPUT_SCRIPT",
  334. "INPUT_MRI_SCRIPT","INPUT_DEFSYM","','","';'","')'","'['","']'","'!'","'~'",
  335. "file","filename","defsym_expr","@1","mri_script_file","@2","mri_script_lines",
  336. "mri_script_command","ordernamelist","mri_load_name_list","mri_abs_name_list",
  337. "script_file","@3","ifile_list","ifile_p1","@4","@5","input_list","sections",
  338. "sec_or_group_p1","statement_anywhere","file_NAME_list","input_section_spec",
  339. "@6","@7","@8","statement","statement_list","statement_list_opt","length","fill_opt",
  340. "assign_op","end","assignment","opt_comma","memory","memory_spec_list","memory_spec",
  341. "@9","origin_spec","length_spec","attributes_opt","startup","high_level_library",
  342. "high_level_library_NAME_list","low_level_library","low_level_library_NAME_list",
  343. "floating_point_support","mustbe_exp","@10","exp","opt_at","section","@11","@12",
  344. "@13","@14","@15","type","opt_exp_with_type","memspec_opt",""
  345. };
  346. #endif
  347.  
  348. static const short yyr1[] = {     0,
  349.    107,   107,   107,   108,   110,   109,   112,   111,   113,   113,
  350.    114,   114,   114,   114,   114,   114,   114,   114,   114,   114,
  351.    114,   114,   114,   114,   114,   114,   114,   114,   114,   114,
  352.    114,   114,   114,   115,   115,   115,   116,   116,   117,   117,
  353.    119,   118,   120,   120,   121,   121,   121,   121,   121,   121,
  354.    121,   121,   121,   121,   121,   121,   121,   121,   121,   121,
  355.    122,   121,   121,   123,   121,   124,   124,   124,   125,   126,
  356.    126,   126,   127,   127,   128,   128,   129,   130,   129,   131,
  357.    129,   132,   129,   133,   133,   133,   133,   133,   133,   133,
  358.    134,   134,   135,   135,   136,   136,   136,   136,   137,   137,
  359.    138,   138,   138,   138,   138,   138,   138,   138,   139,   139,
  360.    140,   140,   140,   141,   141,   142,   143,   143,   143,   145,
  361.    144,   146,   147,   148,   148,   149,   150,   150,   151,   151,
  362.    152,   153,   153,   154,   154,   156,   155,   157,   157,   157,
  363.    157,   157,   157,   157,   157,   157,   157,   157,   157,   157,
  364.    157,   157,   157,   157,   157,   157,   157,   157,   157,   157,
  365.    157,   157,   157,   157,   157,   157,   157,   157,   157,   157,
  366.    157,   158,   158,   160,   161,   162,   163,   164,   159,   165,
  367.    165,   165,   165,   165,   165,   166,   166,   166,   166,   167,
  368.    167
  369. };
  370.  
  371. static const short yyr2[] = {     0,
  372.      2,     2,     2,     1,     0,     4,     0,     2,     3,     0,
  373.      2,     4,     1,     1,     2,     1,     4,     4,     3,     2,
  374.      4,     3,     4,     4,     4,     2,     2,     2,     4,     4,
  375.      2,     2,     0,     3,     2,     0,     1,     3,     1,     3,
  376.      0,     2,     2,     0,     1,     1,     1,     1,     1,     1,
  377.      1,     1,     4,     4,     4,     4,     8,     4,     1,     4,
  378.      0,     5,     4,     0,     5,     1,     3,     2,     4,     2,
  379.      2,     0,     4,     2,     1,     3,     1,     0,     4,     0,
  380.      5,     0,     5,     2,     1,     1,     1,     1,     4,     4,
  381.      2,     1,     0,     1,     1,     1,     1,     1,     2,     0,
  382.      1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  383.      3,     3,     6,     1,     0,     5,     2,     3,     0,     0,
  384.      7,     3,     3,     3,     0,     4,     4,     3,     3,     1,
  385.      4,     3,     0,     1,     1,     0,     2,     2,     3,     4,
  386.      2,     2,     2,     3,     3,     3,     3,     3,     3,     3,
  387.      3,     3,     3,     3,     3,     3,     3,     3,     3,     5,
  388.      3,     3,     4,     1,     1,     4,     4,     4,     4,     4,
  389.      1,     4,     0,     0,     0,     0,     0,     0,    14,     1,
  390.      1,     1,     1,     1,     0,     2,     5,     1,     4,     2,
  391.      0
  392. };
  393.  
  394. static const short yydefact[] = {     0,
  395.     41,     7,     5,     1,    44,     2,    10,     3,     0,    42,
  396.      8,     0,     0,     0,     0,    59,     0,     0,     0,     0,
  397.      0,     0,     0,     0,     0,     0,   134,   135,     0,    61,
  398.      0,     0,    52,    43,    46,    51,     0,    45,    47,    48,
  399.     49,    50,    13,     0,     0,     0,    14,     0,     0,     0,
  400.     16,    36,     0,     0,     0,     0,     0,     0,     0,     0,
  401.    101,   102,   103,   104,   136,   105,   106,   107,   108,   136,
  402.     72,     0,     0,     4,    64,     0,     0,     0,     0,     0,
  403.      0,     0,   133,     0,     0,     0,     0,   110,   109,    74,
  404.      0,     0,   164,   171,     0,     0,     0,     0,     0,   165,
  405.      0,     0,     0,     0,     0,     0,     0,    11,     0,    39,
  406.     26,    37,    27,    15,    28,    20,     0,    31,     0,    32,
  407.      9,     6,   111,     0,   112,     0,     0,     0,    44,   120,
  408.    119,     0,     0,     0,     0,     0,   128,   130,   115,   115,
  409.     66,     0,     0,     0,     0,     0,     0,   142,   138,     0,
  410.      0,     0,     0,     0,     0,     0,     0,   141,   143,     0,
  411.      0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  412.      0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  413.      0,    22,     0,     0,    35,     0,     0,     0,    19,     0,
  414.    137,   174,    69,    71,    70,     0,    56,    58,     0,   125,
  415.      0,    53,    54,    63,    73,   126,   114,   127,     0,   131,
  416.      0,    68,     0,    60,     0,    55,   136,    24,    25,   139,
  417.      0,     0,     0,     0,     0,     0,     0,     0,   162,   161,
  418.    159,   158,   157,   151,   152,   155,   156,   153,   154,   149,
  419.    150,   147,   148,   144,   145,   146,    12,    23,    21,    40,
  420.     38,    34,    17,    18,    30,    29,     0,     0,    65,     0,
  421.      0,   116,     0,   117,   129,   132,    67,    62,     0,   169,
  422.    170,   163,   166,   140,   167,   168,     0,   188,   185,     0,
  423.    173,     0,     0,     0,   118,   113,   160,   180,   181,   182,
  424.    183,   184,     0,   186,   185,     0,   175,     0,   124,     0,
  425.    115,     0,     0,     0,     0,    57,   136,     0,   189,     0,
  426.      0,   176,   122,     0,   121,   187,   172,    93,   136,    77,
  427.     82,    95,    96,    97,    98,     0,    85,    87,    86,    78,
  428.     88,    92,    94,     0,     0,     0,   123,     0,     0,     0,
  429.      0,    91,   177,     0,    84,     0,     0,     0,    75,   115,
  430.    191,     0,   115,   115,    90,    79,     0,     0,   100,    89,
  431.     81,    83,    76,   190,   136,   178,    99,   115,   179,     0,
  432.      0,     0
  433. };
  434.  
  435. static const short yydefgoto[] = {   370,
  436.     75,     8,     9,     6,     7,    11,    59,   114,   113,   111,
  437.      4,     5,    10,    34,    85,   129,   142,    35,   126,    36,
  438.    350,   331,   341,   338,   339,   332,   333,   334,   335,   366,
  439.     70,    90,    37,   357,    38,   201,   131,   200,   301,   315,
  440.    261,    39,    40,   139,    41,   140,    42,   123,   124,   150,
  441.    297,   195,   257,   305,   318,   351,   368,   293,   281,   359
  442. };
  443.  
  444. static const short yypact[] = {   -33,
  445. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,    36,   354,
  446.    355,    53,    84,    23,    41,-32768,    63,    83,    58,    71,
  447.     76,   104,   109,   120,   125,   126,-32768,-32768,   128,-32768,
  448.    130,   131,-32768,-32768,-32768,-32768,    54,-32768,-32768,-32768,
  449. -32768,-32768,-32768,   164,   167,   249,-32768,   170,   171,   178,
  450. -32768,-32768,   181,   183,   184,   249,   195,   199,   122,   249,
  451. -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  452. -32768,   206,   209,-32768,-32768,   210,   211,    83,    83,   212,
  453.     83,    11,-32768,   216,   185,    83,   218,-32768,-32768,-32768,
  454.    214,   215,-32768,-32768,   249,   249,   249,   190,   191,-32768,
  455.    197,   198,   200,   201,   204,   249,   249,   587,   143,-32768,
  456.    135,-32768,   142,     3,-32768,-32768,   154,   614,   144,-32768,
  457. -32768,   614,-32768,   249,-32768,     7,   -63,   145,-32768,-32768,
  458. -32768,   149,   155,   159,   165,   166,-32768,-32768,   -32,   -17,
  459. -32768,     8,   216,   168,   257,   249,   249,-32768,-32768,     2,
  460.    249,   249,   265,   267,   249,   269,   249,-32768,-32768,   249,
  461.    249,   249,   249,   249,   249,   249,   249,   249,   249,   249,
  462.    249,   249,   249,   249,   249,   249,   249,   249,   249,   249,
  463.    249,   614,   270,   271,-32768,   272,   249,   249,   614,   146,
  464.    614,    84,-32768,-32768,-32768,   273,-32768,-32768,   318,   244,
  465.     -2,-32768,-32768,-32768,-32768,-32768,-32768,-32768,    83,-32768,
  466.     83,-32768,   277,-32768,    37,-32768,-32768,   614,   614,-32768,
  467.    440,   460,   180,   186,   480,   202,   500,   697,   633,   652,
  468.    712,   726,   739,   750,   750,    26,    26,    26,    26,    15,
  469.     15,    49,    49,-32768,-32768,-32768,   614,   614,   614,-32768,
  470. -32768,-32768,   614,   614,-32768,-32768,   226,   193,-32768,   279,
  471.    282,-32768,   210,-32768,-32768,-32768,-32768,-32768,   203,-32768,
  472. -32768,-32768,-32768,-32768,-32768,-32768,   249,-32768,   140,   674,
  473.    219,   302,   207,   237,-32768,-32768,   614,-32768,-32768,-32768,
  474. -32768,-32768,   208,-32768,    19,   280,-32768,   213,-32768,   308,
  475.    220,   303,   217,   249,   281,-32768,-32768,   248,-32768,   309,
  476.    527,-32768,-32768,   314,-32768,-32768,-32768,   261,-32768,   338,
  477. -32768,-32768,-32768,-32768,-32768,   290,-32768,-32768,-32768,-32768,
  478. -32768,-32768,   261,   283,   291,    54,-32768,   293,   294,   249,
  479.    332,-32768,-32768,   249,-32768,   332,   332,   547,-32768,   -62,
  480.    313,   567,   -16,    51,-32768,-32768,   334,   336,   343,-32768,
  481. -32768,-32768,-32768,-32768,-32768,-32768,-32768,   220,-32768,   341,
  482.    356,-32768
  483. };
  484.  
  485. static const short yypgoto[] = {-32768,
  486.    -73,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
  487. -32768,-32768,   228,-32768,-32768,-32768,   227,-32768,-32768,   234,
  488.   -187,-32768,-32768,-32768,-32768,    30,-32768,-32768,-32768,-32768,
  489. -32768,    35,  -282,  -136,-32768,-32768,  -184,-32768,-32768,-32768,
  490. -32768,-32768,-32768,-32768,-32768,-32768,-32768,   -69,-32768,   -46,
  491. -32768,-32768,-32768,-32768,-32768,-32768,-32768,    77,-32768,-32768
  492. };
  493.  
  494.  
  495. #define    YYLAST        783
  496.  
  497.  
  498. static const short yytable[] = {   108,
  499.    125,   130,   209,   211,   133,   134,   185,   136,   138,   118,
  500.    192,   212,   144,   122,    74,   160,   264,   161,   162,   163,
  501.    164,   165,   166,   167,   168,   169,   170,   171,   172,   173,
  502.    174,   175,   176,   177,   178,   336,   196,   207,   197,    12,
  503.    212,   356,   262,   174,   175,   176,   177,   178,   148,   149,
  504.    336,   193,   172,   173,   174,   175,   176,   177,   178,   158,
  505.    159,    60,   182,     1,     2,     3,    71,   207,    23,   208,
  506.    189,   288,   289,   290,   291,   292,    72,   191,   285,   176,
  507.    177,   178,   207,   207,   210,   361,    74,    32,    61,    62,
  508.     63,    64,    65,    66,    67,    68,    69,   263,    73,   218,
  509.    219,    76,   186,   220,   221,   222,    77,   213,   225,   214,
  510.    227,    78,   137,   228,   229,   230,   231,   232,   233,   234,
  511.    235,   236,   237,   238,   239,   240,   241,   242,   243,   244,
  512.    245,   246,   247,   248,   249,   265,   213,   266,   268,    79,
  513.    253,   254,    93,    94,    80,    93,    94,   269,   255,   256,
  514.    207,   180,   362,    88,    89,    81,    93,    94,   353,   354,
  515.     82,    83,   187,    84,   308,    86,    87,    91,    95,    96,
  516.     92,    95,    96,   109,   110,    97,    98,    99,    97,    98,
  517.     99,   112,    95,    96,   115,   100,   116,   117,   100,    97,
  518.     98,    99,   288,   289,   290,   291,   292,   101,   119,   100,
  519.    101,   120,   102,   103,   104,   102,   103,   104,   121,   127,
  520.    280,   101,   128,   130,   132,   135,   102,   103,   104,   141,
  521.    143,   145,   146,   147,   105,   151,   152,   105,    93,    94,
  522.    287,   369,   153,   154,   183,   155,   156,   313,   105,   157,
  523.    278,   184,   181,   190,   106,   107,   198,   106,   107,   337,
  524.    202,    93,    94,   188,    95,    96,   203,   311,   106,   107,
  525.    204,   279,    98,    99,   320,   217,   205,   206,   223,   216,
  526.    224,   100,   226,   250,   251,   252,   258,    95,    96,   260,
  527.    267,   272,   283,   101,    97,    98,    99,   273,   102,   103,
  528.    104,   321,   282,   348,   100,   367,   284,   352,   296,   322,
  529.    323,   324,   325,   275,   286,   298,   101,   300,   299,   302,
  530.    105,   102,   103,   104,   306,   304,   307,   309,   310,   207,
  531.    314,    13,   319,   316,   312,   340,   344,   343,   346,   347,
  532.    106,   107,   326,   105,   327,   349,   358,   363,   328,   364,
  533.    371,    32,    61,    62,    63,    64,    65,    66,    67,    68,
  534.     69,   365,   259,   106,   107,   372,   199,    13,    43,   194,
  535.     14,   329,   342,   330,    15,    16,    17,    18,    19,   215,
  536.    345,   303,     0,   -80,     0,     0,    20,    21,    22,    23,
  537.      0,     0,     0,    24,    25,    26,    27,    28,     0,     0,
  538.      0,    44,    29,    30,    31,     0,    14,     0,    32,     0,
  539.     15,    16,    17,    18,    19,     0,     0,     0,     0,     0,
  540.      0,     0,    20,    21,    22,    23,     0,     0,    33,    24,
  541.     25,    26,    27,    28,     0,     0,     0,     0,    29,    30,
  542.     31,     0,     0,    45,    32,     0,    46,    47,    48,    49,
  543.     50,   -33,    51,    52,    53,    54,    55,    56,    57,    58,
  544.      0,     0,     0,   160,    33,   161,   162,   163,   164,   165,
  545.    166,   167,   168,   169,   170,   171,   172,   173,   174,   175,
  546.    176,   177,   178,   160,     0,   161,   162,   163,   164,   165,
  547.    166,   167,   168,   169,   170,   171,   172,   173,   174,   175,
  548.    176,   177,   178,   160,     0,   161,   162,   163,   164,   165,
  549.    166,   167,   168,   169,   170,   171,   172,   173,   174,   175,
  550.    176,   177,   178,   160,     0,   161,   162,   163,   164,   165,
  551.    166,   167,   168,   169,   170,   171,   172,   173,   174,   175,
  552.    176,   177,   178,     0,     0,     0,     0,     0,     0,     0,
  553.    160,   270,   161,   162,   163,   164,   165,   166,   167,   168,
  554.    169,   170,   171,   172,   173,   174,   175,   176,   177,   178,
  555.    160,   271,   161,   162,   163,   164,   165,   166,   167,   168,
  556.    169,   170,   171,   172,   173,   174,   175,   176,   177,   178,
  557.    160,   274,   161,   162,   163,   164,   165,   166,   167,   168,
  558.    169,   170,   171,   172,   173,   174,   175,   176,   177,   178,
  559.    160,   276,   161,   162,   163,   164,   165,   166,   167,   168,
  560.    169,   170,   171,   172,   173,   174,   175,   176,   177,   178,
  561.      0,     0,     0,     0,     0,     0,     0,   160,   317,   161,
  562.    162,   163,   164,   165,   166,   167,   168,   169,   170,   171,
  563.    172,   173,   174,   175,   176,   177,   178,     0,   355,   162,
  564.    163,   164,   165,   166,   167,   168,   169,   170,   171,   172,
  565.    173,   174,   175,   176,   177,   178,     0,     0,   360,   163,
  566.    164,   165,   166,   167,   168,   169,   170,   171,   172,   173,
  567.    174,   175,   176,   177,   178,     0,   179,   160,   294,   161,
  568.    162,   163,   164,   165,   166,   167,   168,   169,   170,   171,
  569.    172,   173,   174,   175,   176,   177,   178,     0,     0,   295,
  570.    160,   277,   161,   162,   163,   164,   165,   166,   167,   168,
  571.    169,   170,   171,   172,   173,   174,   175,   176,   177,   178,
  572.    164,   165,   166,   167,   168,   169,   170,   171,   172,   173,
  573.    174,   175,   176,   177,   178,   165,   166,   167,   168,   169,
  574.    170,   171,   172,   173,   174,   175,   176,   177,   178,   166,
  575.    167,   168,   169,   170,   171,   172,   173,   174,   175,   176,
  576.    177,   178,   168,   169,   170,   171,   172,   173,   174,   175,
  577.    176,   177,   178
  578. };
  579.  
  580. static const short yycheck[] = {    46,
  581.     70,     4,   139,   140,    78,    79,     4,    81,    82,    56,
  582.      4,     4,    86,    60,     4,    14,   201,    16,    17,    18,
  583.     19,    20,    21,    22,    23,    24,    25,    26,    27,    28,
  584.     29,    30,    31,    32,    33,   318,   100,   100,   102,     4,
  585.      4,   104,    45,    29,    30,    31,    32,    33,    95,    96,
  586.    333,    45,    27,    28,    29,    30,    31,    32,    33,   106,
  587.    107,     9,   109,    97,    98,    99,    44,   100,    62,   102,
  588.    117,    53,    54,    55,    56,    57,    36,   124,   263,    31,
  589.     32,    33,   100,   100,   102,   102,     4,    81,     5,     6,
  590.      7,     8,     9,    10,    11,    12,    13,   100,    36,   146,
  591.    147,    44,   100,   102,   151,   152,    36,   100,   155,   102,
  592.    157,    36,   102,   160,   161,   162,   163,   164,   165,   166,
  593.    167,   168,   169,   170,   171,   172,   173,   174,   175,   176,
  594.    177,   178,   179,   180,   181,   209,   100,   211,   102,    36,
  595.    187,   188,     3,     4,    36,     3,     4,   217,     3,     4,
  596.    100,     9,   102,   100,   101,    36,     3,     4,   346,   347,
  597.     36,    36,     9,    36,   301,    36,    36,     4,    29,    30,
  598.      4,    29,    30,     4,     4,    36,    37,    38,    36,    37,
  599.     38,     4,    29,    30,     4,    46,     4,     4,    46,    36,
  600.     37,    38,    53,    54,    55,    56,    57,    58,     4,    46,
  601.     58,     3,    63,    64,    65,    63,    64,    65,    87,     4,
  602.    257,    58,     4,     4,     4,     4,    63,    64,    65,     4,
  603.     36,     4,     9,     9,    85,    36,    36,    85,     3,     4,
  604.    277,   368,    36,    36,   100,    36,    36,   307,    85,    36,
  605.     15,   100,   100,   100,   105,   106,   102,   105,   106,   319,
  606.    102,     3,     4,   100,    29,    30,   102,   304,   105,   106,
  607.    102,    36,    37,    38,     4,     9,   102,   102,     4,   102,
  608.      4,    46,     4,     4,     4,     4,     4,    29,    30,    36,
  609.      4,   102,     4,    58,    36,    37,    38,   102,    63,    64,
  610.     65,    31,   100,   340,    46,   365,    15,   344,    80,    39,
  611.     40,    41,    42,   102,   102,     4,    58,    71,   102,   102,
  612.     85,    63,    64,    65,   102,    36,     9,    15,   102,   100,
  613.     73,     4,     9,    15,    44,    36,    36,    45,    36,    36,
  614.    105,   106,    72,    85,    74,     4,    24,     4,    78,     4,
  615.      0,    81,     5,     6,     7,     8,     9,    10,    11,    12,
  616.     13,     9,    35,   105,   106,     0,   129,     4,     4,   126,
  617.     43,   101,   333,   103,    47,    48,    49,    50,    51,   143,
  618.    336,   295,    -1,    36,    -1,    -1,    59,    60,    61,    62,
  619.     -1,    -1,    -1,    66,    67,    68,    69,    70,    -1,    -1,
  620.     -1,    37,    75,    76,    77,    -1,    43,    -1,    81,    -1,
  621.     47,    48,    49,    50,    51,    -1,    -1,    -1,    -1,    -1,
  622.     -1,    -1,    59,    60,    61,    62,    -1,    -1,   101,    66,
  623.     67,    68,    69,    70,    -1,    -1,    -1,    -1,    75,    76,
  624.     77,    -1,    -1,    79,    81,    -1,    82,    83,    84,    85,
  625.     86,    87,    88,    89,    90,    91,    92,    93,    94,    95,
  626.     -1,    -1,    -1,    14,   101,    16,    17,    18,    19,    20,
  627.     21,    22,    23,    24,    25,    26,    27,    28,    29,    30,
  628.     31,    32,    33,    14,    -1,    16,    17,    18,    19,    20,
  629.     21,    22,    23,    24,    25,    26,    27,    28,    29,    30,
  630.     31,    32,    33,    14,    -1,    16,    17,    18,    19,    20,
  631.     21,    22,    23,    24,    25,    26,    27,    28,    29,    30,
  632.     31,    32,    33,    14,    -1,    16,    17,    18,    19,    20,
  633.     21,    22,    23,    24,    25,    26,    27,    28,    29,    30,
  634.     31,    32,    33,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
  635.     14,   102,    16,    17,    18,    19,    20,    21,    22,    23,
  636.     24,    25,    26,    27,    28,    29,    30,    31,    32,    33,
  637.     14,   102,    16,    17,    18,    19,    20,    21,    22,    23,
  638.     24,    25,    26,    27,    28,    29,    30,    31,    32,    33,
  639.     14,   102,    16,    17,    18,    19,    20,    21,    22,    23,
  640.     24,    25,    26,    27,    28,    29,    30,    31,    32,    33,
  641.     14,   102,    16,    17,    18,    19,    20,    21,    22,    23,
  642.     24,    25,    26,    27,    28,    29,    30,    31,    32,    33,
  643.     -1,    -1,    -1,    -1,    -1,    -1,    -1,    14,   102,    16,
  644.     17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
  645.     27,    28,    29,    30,    31,    32,    33,    -1,   102,    17,
  646.     18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
  647.     28,    29,    30,    31,    32,    33,    -1,    -1,   102,    18,
  648.     19,    20,    21,    22,    23,    24,    25,    26,    27,    28,
  649.     29,    30,    31,    32,    33,    -1,   100,    14,    15,    16,
  650.     17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
  651.     27,    28,    29,    30,    31,    32,    33,    -1,    -1,    36,
  652.     14,    15,    16,    17,    18,    19,    20,    21,    22,    23,
  653.     24,    25,    26,    27,    28,    29,    30,    31,    32,    33,
  654.     19,    20,    21,    22,    23,    24,    25,    26,    27,    28,
  655.     29,    30,    31,    32,    33,    20,    21,    22,    23,    24,
  656.     25,    26,    27,    28,    29,    30,    31,    32,    33,    21,
  657.     22,    23,    24,    25,    26,    27,    28,    29,    30,    31,
  658.     32,    33,    23,    24,    25,    26,    27,    28,    29,    30,
  659.     31,    32,    33
  660. };
  661. /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  662. #line 3 "/usr/unsupported/lib/bison.simple"
  663.  
  664. /* Skeleton output parser for bison,
  665.    Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
  666.  
  667.    This program is free software; you can redistribute it and/or modify
  668.    it under the terms of the GNU General Public License as published by
  669.    the Free Software Foundation; either version 1, or (at your option)
  670.    any later version.
  671.  
  672.    This program is distributed in the hope that it will be useful,
  673.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  674.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  675.    GNU General Public License for more details.
  676.  
  677.    You should have received a copy of the GNU General Public License
  678.    along with this program; if not, write to the Free Software
  679.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  680.  
  681.  
  682. #ifndef alloca
  683. #ifdef __GNUC__
  684. #define alloca __builtin_alloca
  685. #else /* not GNU C.  */
  686. #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
  687. #include <alloca.h>
  688. #else /* not sparc */
  689. #if defined (MSDOS) && !defined (__TURBOC__)
  690. #include <malloc.h>
  691. #else /* not MSDOS, or __TURBOC__ */
  692. #if defined(_AIX)
  693. #include <malloc.h>
  694.  #pragma alloca
  695. #else /* not MSDOS, __TURBOC__, or _AIX */
  696. #ifdef __hpux
  697. #ifdef __cplusplus
  698. extern "C" {
  699. void *alloca (unsigned int);
  700. };
  701. #else /* not __cplusplus */
  702. void *alloca ();
  703. #endif /* not __cplusplus */
  704. #endif /* __hpux */
  705. #endif /* not _AIX */
  706. #endif /* not MSDOS, or __TURBOC__ */
  707. #endif /* not sparc.  */
  708. #endif /* not GNU C.  */
  709. #endif /* alloca not defined.  */
  710.  
  711. /* This is the parser code that is written into each bison parser
  712.   when the %semantic_parser declaration is not specified in the grammar.
  713.   It was written by Richard Stallman by simplifying the hairy parser
  714.   used when %semantic_parser is specified.  */
  715.  
  716. /* Note: there must be only one dollar sign in this file.
  717.    It is replaced by the list of actions, each action
  718.    as one case of the switch.  */
  719.  
  720. #define yyerrok        (yyerrstatus = 0)
  721. #define yyclearin    (yychar = YYEMPTY)
  722. #define YYEMPTY        -2
  723. #define YYEOF        0
  724. #define YYACCEPT    return(0)
  725. #define YYABORT     return(1)
  726. #define YYERROR        goto yyerrlab1
  727. /* Like YYERROR except do call yyerror.
  728.    This remains here temporarily to ease the
  729.    transition to the new meaning of YYERROR, for GCC.
  730.    Once GCC version 2 has supplanted version 1, this can go.  */
  731. #define YYFAIL        goto yyerrlab
  732. #define YYRECOVERING()  (!!yyerrstatus)
  733. #define YYBACKUP(token, value) \
  734. do                                \
  735.   if (yychar == YYEMPTY && yylen == 1)                \
  736.     { yychar = (token), yylval = (value);            \
  737.       yychar1 = YYTRANSLATE (yychar);                \
  738.       YYPOPSTACK;                        \
  739.       goto yybackup;                        \
  740.     }                                \
  741.   else                                \
  742.     { yyerror ("syntax error: cannot back up"); YYERROR; }    \
  743. while (0)
  744.  
  745. #define YYTERROR    1
  746. #define YYERRCODE    256
  747.  
  748. #ifndef YYPURE
  749. #define YYLEX        yylex()
  750. #endif
  751.  
  752. #ifdef YYPURE
  753. #ifdef YYLSP_NEEDED
  754. #define YYLEX        yylex(&yylval, &yylloc)
  755. #else
  756. #define YYLEX        yylex(&yylval)
  757. #endif
  758. #endif
  759.  
  760. /* If nonreentrant, generate the variables here */
  761.  
  762. #ifndef YYPURE
  763.  
  764. int    yychar;            /*  the lookahead symbol        */
  765. YYSTYPE    yylval;            /*  the semantic value of the        */
  766.                 /*  lookahead symbol            */
  767.  
  768. #ifdef YYLSP_NEEDED
  769. YYLTYPE yylloc;            /*  location data for the lookahead    */
  770.                 /*  symbol                */
  771. #endif
  772.  
  773. int yynerrs;            /*  number of parse errors so far       */
  774. #endif  /* not YYPURE */
  775.  
  776. #if YYDEBUG != 0
  777. int yydebug;            /*  nonzero means print parse trace    */
  778. /* Since this is uninitialized, it does not stop multiple parsers
  779.    from coexisting.  */
  780. #endif
  781.  
  782. /*  YYINITDEPTH indicates the initial size of the parser's stacks    */
  783.  
  784. #ifndef    YYINITDEPTH
  785. #define YYINITDEPTH 200
  786. #endif
  787.  
  788. /*  YYMAXDEPTH is the maximum size the stacks can grow to
  789.     (effective only if the built-in stack extension method is used).  */
  790.  
  791. #if YYMAXDEPTH == 0
  792. #undef YYMAXDEPTH
  793. #endif
  794.  
  795. #ifndef YYMAXDEPTH
  796. #define YYMAXDEPTH 10000
  797. #endif
  798.  
  799. /* Prevent warning if -Wstrict-prototypes.  */
  800. #ifdef __GNUC__
  801. int yyparse (void);
  802. #endif
  803.  
  804. #if __GNUC__ > 1        /* GNU C and GNU C++ define this.  */
  805. #define __yy_bcopy(FROM,TO,COUNT)    __builtin_memcpy(TO,FROM,COUNT)
  806. #else                /* not GNU C or C++ */
  807. #ifndef __cplusplus
  808.  
  809. /* This is the most reliable way to avoid incompatibilities
  810.    in available built-in functions on various systems.  */
  811. static void
  812. __yy_bcopy (from, to, count)
  813.      char *from;
  814.      char *to;
  815.      int count;
  816. {
  817.   register char *f = from;
  818.   register char *t = to;
  819.   register int i = count;
  820.  
  821.   while (i-- > 0)
  822.     *t++ = *f++;
  823. }
  824.  
  825. #else /* __cplusplus */
  826.  
  827. /* This is the most reliable way to avoid incompatibilities
  828.    in available built-in functions on various systems.  */
  829. static void
  830. __yy_bcopy (char *from, char *to, int count)
  831. {
  832.   register char *f = from;
  833.   register char *t = to;
  834.   register int i = count;
  835.  
  836.   while (i-- > 0)
  837.     *t++ = *f++;
  838. }
  839.  
  840. #endif
  841. #endif
  842.  
  843. #line 184 "/usr/unsupported/lib/bison.simple"
  844. int
  845. yyparse()
  846. {
  847.   register int yystate;
  848.   register int yyn;
  849.   register short *yyssp;
  850.   register YYSTYPE *yyvsp;
  851.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  852.   int yychar1 = 0;        /*  lookahead token as an internal (translated) token number */
  853.  
  854.   short    yyssa[YYINITDEPTH];    /*  the state stack            */
  855.   YYSTYPE yyvsa[YYINITDEPTH];    /*  the semantic value stack        */
  856.  
  857.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  858.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  859.  
  860. #ifdef YYLSP_NEEDED
  861.   YYLTYPE yylsa[YYINITDEPTH];    /*  the location stack            */
  862.   YYLTYPE *yyls = yylsa;
  863.   YYLTYPE *yylsp;
  864.  
  865. #define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
  866. #else
  867. #define YYPOPSTACK   (yyvsp--, yyssp--)
  868. #endif
  869.  
  870.   int yystacksize = YYINITDEPTH;
  871.  
  872. #ifdef YYPURE
  873.   int yychar;
  874.   YYSTYPE yylval;
  875.   int yynerrs;
  876. #ifdef YYLSP_NEEDED
  877.   YYLTYPE yylloc;
  878. #endif
  879. #endif
  880.  
  881.   YYSTYPE yyval;        /*  the variable used to return        */
  882.                 /*  semantic values from the action    */
  883.                 /*  routines                */
  884.  
  885.   int yylen;
  886.  
  887. #if YYDEBUG != 0
  888.   if (yydebug)
  889.     fprintf(stderr, "Starting parse\n");
  890. #endif
  891.  
  892.   yystate = 0;
  893.   yyerrstatus = 0;
  894.   yynerrs = 0;
  895.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  896.  
  897.   /* Initialize stack pointers.
  898.      Waste one element of value and location stack
  899.      so that they stay on the same level as the state stack.
  900.      The wasted elements are never initialized.  */
  901.  
  902.   yyssp = yyss - 1;
  903.   yyvsp = yyvs;
  904. #ifdef YYLSP_NEEDED
  905.   yylsp = yyls;
  906. #endif
  907.  
  908. /* Push a new state, which is found in  yystate  .  */
  909. /* In all cases, when you get here, the value and location stacks
  910.    have just been pushed. so pushing a state here evens the stacks.  */
  911. yynewstate:
  912.  
  913.   *++yyssp = yystate;
  914.  
  915.   if (yyssp >= yyss + yystacksize - 1)
  916.     {
  917.       /* Give user a chance to reallocate the stack */
  918.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  919.       YYSTYPE *yyvs1 = yyvs;
  920.       short *yyss1 = yyss;
  921. #ifdef YYLSP_NEEDED
  922.       YYLTYPE *yyls1 = yyls;
  923. #endif
  924.  
  925.       /* Get the current used size of the three stacks, in elements.  */
  926.       int size = yyssp - yyss + 1;
  927.  
  928. #ifdef yyoverflow
  929.       /* Each stack pointer address is followed by the size of
  930.      the data in use in that stack, in bytes.  */
  931. #ifdef YYLSP_NEEDED
  932.       /* This used to be a conditional around just the two extra args,
  933.      but that might be undefined if yyoverflow is a macro.  */
  934.       yyoverflow("parser stack overflow",
  935.          &yyss1, size * sizeof (*yyssp),
  936.          &yyvs1, size * sizeof (*yyvsp),
  937.          &yyls1, size * sizeof (*yylsp),
  938.          &yystacksize);
  939. #else
  940.       yyoverflow("parser stack overflow",
  941.          &yyss1, size * sizeof (*yyssp),
  942.          &yyvs1, size * sizeof (*yyvsp),
  943.          &yystacksize);
  944. #endif
  945.  
  946.       yyss = yyss1; yyvs = yyvs1;
  947. #ifdef YYLSP_NEEDED
  948.       yyls = yyls1;
  949. #endif
  950. #else /* no yyoverflow */
  951.       /* Extend the stack our own way.  */
  952.       if (yystacksize >= YYMAXDEPTH)
  953.     {
  954.       yyerror("parser stack overflow");
  955.       return 2;
  956.     }
  957.       yystacksize *= 2;
  958.       if (yystacksize > YYMAXDEPTH)
  959.     yystacksize = YYMAXDEPTH;
  960.       yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
  961.       __yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
  962.       yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
  963.       __yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
  964. #ifdef YYLSP_NEEDED
  965.       yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
  966.       __yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
  967. #endif
  968. #endif /* no yyoverflow */
  969.  
  970.       yyssp = yyss + size - 1;
  971.       yyvsp = yyvs + size - 1;
  972. #ifdef YYLSP_NEEDED
  973.       yylsp = yyls + size - 1;
  974. #endif
  975.  
  976. #if YYDEBUG != 0
  977.       if (yydebug)
  978.     fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  979. #endif
  980.  
  981.       if (yyssp >= yyss + yystacksize - 1)
  982.     YYABORT;
  983.     }
  984.  
  985. #if YYDEBUG != 0
  986.   if (yydebug)
  987.     fprintf(stderr, "Entering state %d\n", yystate);
  988. #endif
  989.  
  990.   goto yybackup;
  991.  yybackup:
  992.  
  993. /* Do appropriate processing given the current state.  */
  994. /* Read a lookahead token if we need one and don't already have one.  */
  995. /* yyresume: */
  996.  
  997.   /* First try to decide what to do without reference to lookahead token.  */
  998.  
  999.   yyn = yypact[yystate];
  1000.   if (yyn == YYFLAG)
  1001.     goto yydefault;
  1002.  
  1003.   /* Not known => get a lookahead token if don't already have one.  */
  1004.  
  1005.   /* yychar is either YYEMPTY or YYEOF
  1006.      or a valid token in external form.  */
  1007.  
  1008.   if (yychar == YYEMPTY)
  1009.     {
  1010. #if YYDEBUG != 0
  1011.       if (yydebug)
  1012.     fprintf(stderr, "Reading a token: ");
  1013. #endif
  1014.       yychar = YYLEX;
  1015.     }
  1016.  
  1017.   /* Convert token to internal form (in yychar1) for indexing tables with */
  1018.  
  1019.   if (yychar <= 0)        /* This means end of input. */
  1020.     {
  1021.       yychar1 = 0;
  1022.       yychar = YYEOF;        /* Don't call YYLEX any more */
  1023.  
  1024. #if YYDEBUG != 0
  1025.       if (yydebug)
  1026.     fprintf(stderr, "Now at end of input.\n");
  1027. #endif
  1028.     }
  1029.   else
  1030.     {
  1031.       yychar1 = YYTRANSLATE(yychar);
  1032.  
  1033. #if YYDEBUG != 0
  1034.       if (yydebug)
  1035.     {
  1036.       fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  1037.       /* Give the individual parser a way to print the precise meaning
  1038.          of a token, for further debugging info.  */
  1039. #ifdef YYPRINT
  1040.       YYPRINT (stderr, yychar, yylval);
  1041. #endif
  1042.       fprintf (stderr, ")\n");
  1043.     }
  1044. #endif
  1045.     }
  1046.  
  1047.   yyn += yychar1;
  1048.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  1049.     goto yydefault;
  1050.  
  1051.   yyn = yytable[yyn];
  1052.  
  1053.   /* yyn is what to do for this token type in this state.
  1054.      Negative => reduce, -yyn is rule number.
  1055.      Positive => shift, yyn is new state.
  1056.        New state is final state => don't bother to shift,
  1057.        just return success.
  1058.      0, or most negative number => error.  */
  1059.  
  1060.   if (yyn < 0)
  1061.     {
  1062.       if (yyn == YYFLAG)
  1063.     goto yyerrlab;
  1064.       yyn = -yyn;
  1065.       goto yyreduce;
  1066.     }
  1067.   else if (yyn == 0)
  1068.     goto yyerrlab;
  1069.  
  1070.   if (yyn == YYFINAL)
  1071.     YYACCEPT;
  1072.  
  1073.   /* Shift the lookahead token.  */
  1074.  
  1075. #if YYDEBUG != 0
  1076.   if (yydebug)
  1077.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  1078. #endif
  1079.  
  1080.   /* Discard the token being shifted unless it is eof.  */
  1081.   if (yychar != YYEOF)
  1082.     yychar = YYEMPTY;
  1083.  
  1084.   *++yyvsp = yylval;
  1085. #ifdef YYLSP_NEEDED
  1086.   *++yylsp = yylloc;
  1087. #endif
  1088.  
  1089.   /* count tokens shifted since error; after three, turn off error status.  */
  1090.   if (yyerrstatus) yyerrstatus--;
  1091.  
  1092.   yystate = yyn;
  1093.   goto yynewstate;
  1094.  
  1095. /* Do the default action for the current state.  */
  1096. yydefault:
  1097.  
  1098.   yyn = yydefact[yystate];
  1099.   if (yyn == 0)
  1100.     goto yyerrlab;
  1101.  
  1102. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  1103. yyreduce:
  1104.   yylen = yyr2[yyn];
  1105.   if (yylen > 0)
  1106.     yyval = yyvsp[1-yylen]; /* implement default value of the action */
  1107.  
  1108. #if YYDEBUG != 0
  1109.   if (yydebug)
  1110.     {
  1111.       int i;
  1112.  
  1113.       fprintf (stderr, "Reducing via rule %d (line %d), ",
  1114.            yyn, yyrline[yyn]);
  1115.  
  1116.       /* Print the symbols being reduced, and their result.  */
  1117.       for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  1118.     fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  1119.       fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  1120.     }
  1121. #endif
  1122.  
  1123.  
  1124.   switch (yyn) {
  1125.  
  1126. case 5:
  1127. #line 126 "./ldgram.y"
  1128. { ldlex_defsym(); ;
  1129.     break;}
  1130. case 6:
  1131. #line 128 "./ldgram.y"
  1132. {
  1133.           ldlex_popstate();
  1134.           lang_add_assignment(exp_assop(yyvsp[-1].token,yyvsp[-2].name,yyvsp[0].etree));
  1135.         ;
  1136.     break;}
  1137. case 7:
  1138. #line 135 "./ldgram.y"
  1139. {        ldlex_mri_script();
  1140.             PUSH_ERROR("MRI style script");
  1141.         ;
  1142.     break;}
  1143. case 8:
  1144. #line 139 "./ldgram.y"
  1145. {    ldlex_popstate(); 
  1146.             POP_ERROR();
  1147.         ;
  1148.     break;}
  1149. case 13:
  1150. #line 152 "./ldgram.y"
  1151. {
  1152.             einfo("%P%F: unrecognised keyword in MRI style script '%s'\n",yyvsp[0].name);
  1153.             ;
  1154.     break;}
  1155. case 14:
  1156. #line 155 "./ldgram.y"
  1157. {
  1158.             config.map_filename = "-";
  1159.             ;
  1160.     break;}
  1161. case 17:
  1162. #line 161 "./ldgram.y"
  1163. { mri_public(yyvsp[-2].name, yyvsp[0].etree); ;
  1164.     break;}
  1165. case 18:
  1166. #line 163 "./ldgram.y"
  1167. { mri_public(yyvsp[-2].name, yyvsp[0].etree); ;
  1168.     break;}
  1169. case 19:
  1170. #line 165 "./ldgram.y"
  1171. { mri_public(yyvsp[-1].name, yyvsp[0].etree); ;
  1172.     break;}
  1173. case 20:
  1174. #line 167 "./ldgram.y"
  1175. { mri_format(yyvsp[0].name); ;
  1176.     break;}
  1177. case 21:
  1178. #line 169 "./ldgram.y"
  1179. { mri_output_section(yyvsp[-2].name, yyvsp[0].etree);;
  1180.     break;}
  1181. case 22:
  1182. #line 171 "./ldgram.y"
  1183. { mri_output_section(yyvsp[-1].name, yyvsp[0].etree);;
  1184.     break;}
  1185. case 23:
  1186. #line 173 "./ldgram.y"
  1187. { mri_output_section(yyvsp[-2].name, yyvsp[0].etree);;
  1188.     break;}
  1189. case 24:
  1190. #line 175 "./ldgram.y"
  1191. { mri_align(yyvsp[-2].name,yyvsp[0].etree); ;
  1192.     break;}
  1193. case 25:
  1194. #line 177 "./ldgram.y"
  1195. { mri_alignmod(yyvsp[-2].name,yyvsp[0].etree); ;
  1196.     break;}
  1197. case 28:
  1198. #line 181 "./ldgram.y"
  1199. { mri_name(yyvsp[0].name); ;
  1200.     break;}
  1201. case 29:
  1202. #line 183 "./ldgram.y"
  1203. { mri_alias(yyvsp[-2].name,yyvsp[0].name,0);;
  1204.     break;}
  1205. case 30:
  1206. #line 185 "./ldgram.y"
  1207. { mri_alias(yyvsp[-2].name,0,(int) yyvsp[0].integer);;
  1208.     break;}
  1209. case 31:
  1210. #line 187 "./ldgram.y"
  1211. { mri_base(yyvsp[0].etree); ;
  1212.     break;}
  1213. case 32:
  1214. #line 189 "./ldgram.y"
  1215. {  mri_truncate((unsigned int) yyvsp[0].integer); ;
  1216.     break;}
  1217. case 34:
  1218. #line 194 "./ldgram.y"
  1219. { mri_order(yyvsp[0].name); ;
  1220.     break;}
  1221. case 35:
  1222. #line 195 "./ldgram.y"
  1223. { mri_order(yyvsp[0].name); ;
  1224.     break;}
  1225. case 37:
  1226. #line 201 "./ldgram.y"
  1227. { mri_load(yyvsp[0].name); ;
  1228.     break;}
  1229. case 38:
  1230. #line 202 "./ldgram.y"
  1231. { mri_load(yyvsp[0].name); ;
  1232.     break;}
  1233. case 39:
  1234. #line 207 "./ldgram.y"
  1235. { mri_only_load(yyvsp[0].name); ;
  1236.     break;}
  1237. case 40:
  1238. #line 209 "./ldgram.y"
  1239. { mri_only_load(yyvsp[0].name); ;
  1240.     break;}
  1241. case 41:
  1242. #line 213 "./ldgram.y"
  1243. {
  1244.      ldlex_both();
  1245.     ;
  1246.     break;}
  1247. case 42:
  1248. #line 217 "./ldgram.y"
  1249. {
  1250.     ldlex_popstate();
  1251.     ;
  1252.     break;}
  1253. case 53:
  1254. #line 240 "./ldgram.y"
  1255. { lang_add_target(yyvsp[-1].name); ;
  1256.     break;}
  1257. case 54:
  1258. #line 242 "./ldgram.y"
  1259. { ldfile_add_library_path (yyvsp[-1].name, false); ;
  1260.     break;}
  1261. case 55:
  1262. #line 244 "./ldgram.y"
  1263. { lang_add_output(yyvsp[-1].name, 1); ;
  1264.     break;}
  1265. case 56:
  1266. #line 246 "./ldgram.y"
  1267. { lang_add_output_format (yyvsp[-1].name, (char *) NULL,
  1268.                         (char *) NULL, 1); ;
  1269.     break;}
  1270. case 57:
  1271. #line 249 "./ldgram.y"
  1272. { lang_add_output_format (yyvsp[-5].name, yyvsp[-3].name, yyvsp[-1].name, 1); ;
  1273.     break;}
  1274. case 58:
  1275. #line 251 "./ldgram.y"
  1276. { ldfile_set_output_arch(yyvsp[-1].name); ;
  1277.     break;}
  1278. case 59:
  1279. #line 253 "./ldgram.y"
  1280. { command_line.force_common_definition = true ; ;
  1281.     break;}
  1282. case 61:
  1283. #line 256 "./ldgram.y"
  1284. { lang_enter_group (); ;
  1285.     break;}
  1286. case 62:
  1287. #line 258 "./ldgram.y"
  1288. { lang_leave_group (); ;
  1289.     break;}
  1290. case 63:
  1291. #line 260 "./ldgram.y"
  1292. { lang_add_map(yyvsp[-1].name); ;
  1293.     break;}
  1294. case 64:
  1295. #line 262 "./ldgram.y"
  1296. { ldfile_open_command_file(yyvsp[0].name); ;
  1297.     break;}
  1298. case 66:
  1299. #line 267 "./ldgram.y"
  1300. { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
  1301.                  (char *)NULL); ;
  1302.     break;}
  1303. case 67:
  1304. #line 270 "./ldgram.y"
  1305. { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
  1306.                  (char *)NULL); ;
  1307.     break;}
  1308. case 68:
  1309. #line 273 "./ldgram.y"
  1310. { lang_add_input_file(yyvsp[0].name,lang_input_file_is_search_file_enum,
  1311.                  (char *)NULL); ;
  1312.     break;}
  1313. case 73:
  1314. #line 289 "./ldgram.y"
  1315. { lang_add_entry (yyvsp[-1].name, 0); ;
  1316.     break;}
  1317. case 75:
  1318. #line 295 "./ldgram.y"
  1319. { lang_add_wild(yyvsp[0].name, current_file); ;
  1320.     break;}
  1321. case 76:
  1322. #line 297 "./ldgram.y"
  1323. { lang_add_wild(yyvsp[0].name, current_file); ;
  1324.     break;}
  1325. case 77:
  1326. #line 302 "./ldgram.y"
  1327. {
  1328.         lang_add_wild((char *)NULL, yyvsp[0].name);
  1329.         ;
  1330.     break;}
  1331. case 78:
  1332. #line 306 "./ldgram.y"
  1333. {
  1334.             current_file = (char *)NULL;
  1335.             ;
  1336.     break;}
  1337. case 80:
  1338. #line 312 "./ldgram.y"
  1339. {
  1340.             current_file =yyvsp[0].name;
  1341.             ;
  1342.     break;}
  1343. case 82:
  1344. #line 317 "./ldgram.y"
  1345. {
  1346.             current_file = (char *)NULL;
  1347.             ;
  1348.     break;}
  1349. case 85:
  1350. #line 326 "./ldgram.y"
  1351. {
  1352.          lang_add_attribute(lang_object_symbols_statement_enum); 
  1353.               ;
  1354.     break;}
  1355. case 87:
  1356. #line 331 "./ldgram.y"
  1357. {
  1358.          
  1359.           lang_add_attribute(lang_constructors_statement_enum); 
  1360.         ;
  1361.     break;}
  1362. case 89:
  1363. #line 337 "./ldgram.y"
  1364. {
  1365.             lang_add_data((int) yyvsp[-3].integer,yyvsp[-1].etree);
  1366.             ;
  1367.     break;}
  1368. case 90:
  1369. #line 342 "./ldgram.y"
  1370. {
  1371.               lang_add_fill
  1372.                 (exp_get_value_int(yyvsp[-1].etree,
  1373.                            0,
  1374.                            "fill value",
  1375.                            lang_first_phase_enum));
  1376.             ;
  1377.     break;}
  1378. case 95:
  1379. #line 363 "./ldgram.y"
  1380. { yyval.integer = yyvsp[0].token; ;
  1381.     break;}
  1382. case 96:
  1383. #line 365 "./ldgram.y"
  1384. { yyval.integer = yyvsp[0].token; ;
  1385.     break;}
  1386. case 97:
  1387. #line 367 "./ldgram.y"
  1388. { yyval.integer = yyvsp[0].token; ;
  1389.     break;}
  1390. case 98:
  1391. #line 369 "./ldgram.y"
  1392. { yyval.integer = yyvsp[0].token; ;
  1393.     break;}
  1394. case 99:
  1395. #line 374 "./ldgram.y"
  1396. {
  1397.           yyval.integer =     exp_get_value_int(yyvsp[0].etree,
  1398.                        0,
  1399.                        "fill value",
  1400.                        lang_first_phase_enum);
  1401.         ;
  1402.     break;}
  1403. case 100:
  1404. #line 380 "./ldgram.y"
  1405. { yyval.integer = 0; ;
  1406.     break;}
  1407. case 101:
  1408. #line 387 "./ldgram.y"
  1409. { yyval.token = '+'; ;
  1410.     break;}
  1411. case 102:
  1412. #line 389 "./ldgram.y"
  1413. { yyval.token = '-'; ;
  1414.     break;}
  1415. case 103:
  1416. #line 391 "./ldgram.y"
  1417. { yyval.token = '*'; ;
  1418.     break;}
  1419. case 104:
  1420. #line 393 "./ldgram.y"
  1421. { yyval.token = '/'; ;
  1422.     break;}
  1423. case 105:
  1424. #line 395 "./ldgram.y"
  1425. { yyval.token = LSHIFT; ;
  1426.     break;}
  1427. case 106:
  1428. #line 397 "./ldgram.y"
  1429. { yyval.token = RSHIFT; ;
  1430.     break;}
  1431. case 107:
  1432. #line 399 "./ldgram.y"
  1433. { yyval.token = '&'; ;
  1434.     break;}
  1435. case 108:
  1436. #line 401 "./ldgram.y"
  1437. { yyval.token = '|'; ;
  1438.     break;}
  1439. case 111:
  1440. #line 411 "./ldgram.y"
  1441. {
  1442.           lang_add_assignment (exp_assop (yyvsp[-1].token, yyvsp[-2].name, yyvsp[0].etree));
  1443.         ;
  1444.     break;}
  1445. case 112:
  1446. #line 415 "./ldgram.y"
  1447. {
  1448.           lang_add_assignment (exp_assop ('=', yyvsp[-2].name,
  1449.                           exp_binop (yyvsp[-1].token,
  1450.                                  exp_nameop (NAME,
  1451.                                      yyvsp[-2].name),
  1452.                                  yyvsp[0].etree)));
  1453.         ;
  1454.     break;}
  1455. case 113:
  1456. #line 423 "./ldgram.y"
  1457. {
  1458.           lang_add_assignment (exp_provide (yyvsp[-3].name, yyvsp[-1].etree));
  1459.         ;
  1460.     break;}
  1461. case 120:
  1462. #line 445 "./ldgram.y"
  1463. { region = lang_memory_region_lookup(yyvsp[0].name); ;
  1464.     break;}
  1465. case 122:
  1466. #line 451 "./ldgram.y"
  1467. { region->current =
  1468.          region->origin =
  1469.          exp_get_vma(yyvsp[0].etree, 0L,"origin", lang_first_phase_enum);
  1470. ;
  1471.     break;}
  1472. case 123:
  1473. #line 457 "./ldgram.y"
  1474. { region->length = exp_get_vma(yyvsp[0].etree,
  1475.                            ~((bfd_vma)0),
  1476.                            "length",
  1477.                            lang_first_phase_enum);
  1478.         ;
  1479.     break;}
  1480. case 124:
  1481. #line 466 "./ldgram.y"
  1482. {
  1483.             lang_set_flags(®ion->flags, yyvsp[-1].name);
  1484.             ;
  1485.     break;}
  1486. case 126:
  1487. #line 475 "./ldgram.y"
  1488. { lang_startup(yyvsp[-1].name); ;
  1489.     break;}
  1490. case 128:
  1491. #line 481 "./ldgram.y"
  1492. { ldemul_hll((char *)NULL); ;
  1493.     break;}
  1494. case 129:
  1495. #line 486 "./ldgram.y"
  1496. { ldemul_hll(yyvsp[0].name); ;
  1497.     break;}
  1498. case 130:
  1499. #line 488 "./ldgram.y"
  1500. { ldemul_hll(yyvsp[0].name); ;
  1501.     break;}
  1502. case 132:
  1503. #line 496 "./ldgram.y"
  1504. { ldemul_syslib(yyvsp[0].name); ;
  1505.     break;}
  1506. case 134:
  1507. #line 502 "./ldgram.y"
  1508. { lang_float(true); ;
  1509.     break;}
  1510. case 135:
  1511. #line 504 "./ldgram.y"
  1512. { lang_float(false); ;
  1513.     break;}
  1514. case 136:
  1515. #line 508 "./ldgram.y"
  1516. { ldlex_expression(); ;
  1517.     break;}
  1518. case 137:
  1519. #line 510 "./ldgram.y"
  1520. { ldlex_popstate(); yyval.etree=yyvsp[0].etree;;
  1521.     break;}
  1522. case 138:
  1523. #line 515 "./ldgram.y"
  1524. { yyval.etree = exp_unop('-', yyvsp[0].etree); ;
  1525.     break;}
  1526. case 139:
  1527. #line 517 "./ldgram.y"
  1528. { yyval.etree = yyvsp[-1].etree; ;
  1529.     break;}
  1530. case 140:
  1531. #line 519 "./ldgram.y"
  1532. { yyval.etree = exp_unop((int) yyvsp[-3].integer,yyvsp[-1].etree); ;
  1533.     break;}
  1534. case 141:
  1535. #line 521 "./ldgram.y"
  1536. { yyval.etree = exp_unop('!', yyvsp[0].etree); ;
  1537.     break;}
  1538. case 142:
  1539. #line 523 "./ldgram.y"
  1540. { yyval.etree = yyvsp[0].etree; ;
  1541.     break;}
  1542. case 143:
  1543. #line 525 "./ldgram.y"
  1544. { yyval.etree = exp_unop('~', yyvsp[0].etree);;
  1545.     break;}
  1546. case 144:
  1547. #line 528 "./ldgram.y"
  1548. { yyval.etree = exp_binop('*', yyvsp[-2].etree, yyvsp[0].etree); ;
  1549.     break;}
  1550. case 145:
  1551. #line 530 "./ldgram.y"
  1552. { yyval.etree = exp_binop('/', yyvsp[-2].etree, yyvsp[0].etree); ;
  1553.     break;}
  1554. case 146:
  1555. #line 532 "./ldgram.y"
  1556. { yyval.etree = exp_binop('%', yyvsp[-2].etree, yyvsp[0].etree); ;
  1557.     break;}
  1558. case 147:
  1559. #line 534 "./ldgram.y"
  1560. { yyval.etree = exp_binop('+', yyvsp[-2].etree, yyvsp[0].etree); ;
  1561.     break;}
  1562. case 148:
  1563. #line 536 "./ldgram.y"
  1564. { yyval.etree = exp_binop('-' , yyvsp[-2].etree, yyvsp[0].etree); ;
  1565.     break;}
  1566. case 149:
  1567. #line 538 "./ldgram.y"
  1568. { yyval.etree = exp_binop(LSHIFT , yyvsp[-2].etree, yyvsp[0].etree); ;
  1569.     break;}
  1570. case 150:
  1571. #line 540 "./ldgram.y"
  1572. { yyval.etree = exp_binop(RSHIFT , yyvsp[-2].etree, yyvsp[0].etree); ;
  1573.     break;}
  1574. case 151:
  1575. #line 542 "./ldgram.y"
  1576. { yyval.etree = exp_binop(EQ , yyvsp[-2].etree, yyvsp[0].etree); ;
  1577.     break;}
  1578. case 152:
  1579. #line 544 "./ldgram.y"
  1580. { yyval.etree = exp_binop(NE , yyvsp[-2].etree, yyvsp[0].etree); ;
  1581.     break;}
  1582. case 153:
  1583. #line 546 "./ldgram.y"
  1584. { yyval.etree = exp_binop(LE , yyvsp[-2].etree, yyvsp[0].etree); ;
  1585.     break;}
  1586. case 154:
  1587. #line 548 "./ldgram.y"
  1588. { yyval.etree = exp_binop(GE , yyvsp[-2].etree, yyvsp[0].etree); ;
  1589.     break;}
  1590. case 155:
  1591. #line 550 "./ldgram.y"
  1592. { yyval.etree = exp_binop('<' , yyvsp[-2].etree, yyvsp[0].etree); ;
  1593.     break;}
  1594. case 156:
  1595. #line 552 "./ldgram.y"
  1596. { yyval.etree = exp_binop('>' , yyvsp[-2].etree, yyvsp[0].etree); ;
  1597.     break;}
  1598. case 157:
  1599. #line 554 "./ldgram.y"
  1600. { yyval.etree = exp_binop('&' , yyvsp[-2].etree, yyvsp[0].etree); ;
  1601.     break;}
  1602. case 158:
  1603. #line 556 "./ldgram.y"
  1604. { yyval.etree = exp_binop('^' , yyvsp[-2].etree, yyvsp[0].etree); ;
  1605.     break;}
  1606. case 159:
  1607. #line 558 "./ldgram.y"
  1608. { yyval.etree = exp_binop('|' , yyvsp[-2].etree, yyvsp[0].etree); ;
  1609.     break;}
  1610. case 160:
  1611. #line 560 "./ldgram.y"
  1612. { yyval.etree = exp_trinop('?' , yyvsp[-4].etree, yyvsp[-2].etree, yyvsp[0].etree); ;
  1613.     break;}
  1614. case 161:
  1615. #line 562 "./ldgram.y"
  1616. { yyval.etree = exp_binop(ANDAND , yyvsp[-2].etree, yyvsp[0].etree); ;
  1617.     break;}
  1618. case 162:
  1619. #line 564 "./ldgram.y"
  1620. { yyval.etree = exp_binop(OROR , yyvsp[-2].etree, yyvsp[0].etree); ;
  1621.     break;}
  1622. case 163:
  1623. #line 566 "./ldgram.y"
  1624. { yyval.etree = exp_nameop(DEFINED, yyvsp[-1].name); ;
  1625.     break;}
  1626. case 164:
  1627. #line 568 "./ldgram.y"
  1628. { yyval.etree = exp_intop(yyvsp[0].integer); ;
  1629.     break;}
  1630. case 165:
  1631. #line 570 "./ldgram.y"
  1632. { yyval.etree = exp_nameop(SIZEOF_HEADERS,0); ;
  1633.     break;}
  1634. case 166:
  1635. #line 573 "./ldgram.y"
  1636. { yyval.etree = exp_nameop(SIZEOF,yyvsp[-1].name); ;
  1637.     break;}
  1638. case 167:
  1639. #line 575 "./ldgram.y"
  1640. { yyval.etree = exp_nameop(ADDR,yyvsp[-1].name); ;
  1641.     break;}
  1642. case 168:
  1643. #line 577 "./ldgram.y"
  1644. { yyval.etree = exp_unop(ABSOLUTE, yyvsp[-1].etree); ;
  1645.     break;}
  1646. case 169:
  1647. #line 579 "./ldgram.y"
  1648. { yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); ;
  1649.     break;}
  1650. case 170:
  1651. #line 581 "./ldgram.y"
  1652. { yyval.etree = exp_unop(ALIGN_K,yyvsp[-1].etree); ;
  1653.     break;}
  1654. case 171:
  1655. #line 583 "./ldgram.y"
  1656. { yyval.etree = exp_nameop(NAME,yyvsp[0].name); ;
  1657.     break;}
  1658. case 172:
  1659. #line 588 "./ldgram.y"
  1660. { yyval.etree = yyvsp[-1].etree; ;
  1661.     break;}
  1662. case 173:
  1663. #line 589 "./ldgram.y"
  1664. { yyval.etree = 0; ;
  1665.     break;}
  1666. case 174:
  1667. #line 592 "./ldgram.y"
  1668. { ldlex_expression(); ;
  1669.     break;}
  1670. case 175:
  1671. #line 594 "./ldgram.y"
  1672. { ldlex_popstate(); ;
  1673.     break;}
  1674. case 176:
  1675. #line 596 "./ldgram.y"
  1676. {
  1677.             lang_enter_output_section_statement(yyvsp[-5].name,yyvsp[-3].etree,typebits,0,0,0,yyvsp[-2].etree);
  1678.             ;
  1679.     break;}
  1680. case 177:
  1681. #line 600 "./ldgram.y"
  1682. {ldlex_expression();;
  1683.     break;}
  1684. case 178:
  1685. #line 601 "./ldgram.y"
  1686. {
  1687.           ldlex_popstate();
  1688.           lang_leave_output_section_statement(yyvsp[0].integer, yyvsp[-1].name);
  1689.         ;
  1690.     break;}
  1691. case 180:
  1692. #line 610 "./ldgram.y"
  1693. { typebits = SEC_NEVER_LOAD; ;
  1694.     break;}
  1695. case 181:
  1696. #line 611 "./ldgram.y"
  1697. { typebits = 0; ;
  1698.     break;}
  1699. case 182:
  1700. #line 612 "./ldgram.y"
  1701. { typebits = 0; ;
  1702.     break;}
  1703. case 183:
  1704. #line 613 "./ldgram.y"
  1705. { typebits = 0; ;
  1706.     break;}
  1707. case 184:
  1708. #line 614 "./ldgram.y"
  1709. { typebits = 0; ;
  1710.     break;}
  1711. case 185:
  1712. #line 615 "./ldgram.y"
  1713. { typebits = SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS; ;
  1714.     break;}
  1715. case 186:
  1716. #line 620 "./ldgram.y"
  1717. { yyval.etree = yyvsp[-1].etree; typebits =0;;
  1718.     break;}
  1719. case 187:
  1720. #line 621 "./ldgram.y"
  1721. { yyval.etree = yyvsp[-4].etree; ;
  1722.     break;}
  1723. case 188:
  1724. #line 622 "./ldgram.y"
  1725. { yyval.etree= (etree_type *)NULL; typebits = 0; ;
  1726.     break;}
  1727. case 189:
  1728. #line 623 "./ldgram.y"
  1729. { yyval.etree= (etree_type *)NULL;  ;
  1730.     break;}
  1731. case 190:
  1732. #line 628 "./ldgram.y"
  1733. { yyval.name = yyvsp[0].name; ;
  1734.     break;}
  1735. case 191:
  1736. #line 629 "./ldgram.y"
  1737. { yyval.name = "*default*"; ;
  1738.     break;}
  1739. }
  1740.    /* the action file gets copied in in place of this dollarsign */
  1741. #line 465 "/usr/unsupported/lib/bison.simple"
  1742.  
  1743.   yyvsp -= yylen;
  1744.   yyssp -= yylen;
  1745. #ifdef YYLSP_NEEDED
  1746.   yylsp -= yylen;
  1747. #endif
  1748.  
  1749. #if YYDEBUG != 0
  1750.   if (yydebug)
  1751.     {
  1752.       short *ssp1 = yyss - 1;
  1753.       fprintf (stderr, "state stack now");
  1754.       while (ssp1 != yyssp)
  1755.     fprintf (stderr, " %d", *++ssp1);
  1756.       fprintf (stderr, "\n");
  1757.     }
  1758. #endif
  1759.  
  1760.   *++yyvsp = yyval;
  1761.  
  1762. #ifdef YYLSP_NEEDED
  1763.   yylsp++;
  1764.   if (yylen == 0)
  1765.     {
  1766.       yylsp->first_line = yylloc.first_line;
  1767.       yylsp->first_column = yylloc.first_column;
  1768.       yylsp->last_line = (yylsp-1)->last_line;
  1769.       yylsp->last_column = (yylsp-1)->last_column;
  1770.       yylsp->text = 0;
  1771.     }
  1772.   else
  1773.     {
  1774.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  1775.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  1776.     }
  1777. #endif
  1778.  
  1779.   /* Now "shift" the result of the reduction.
  1780.      Determine what state that goes to,
  1781.      based on the state we popped back to
  1782.      and the rule number reduced by.  */
  1783.  
  1784.   yyn = yyr1[yyn];
  1785.  
  1786.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  1787.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  1788.     yystate = yytable[yystate];
  1789.   else
  1790.     yystate = yydefgoto[yyn - YYNTBASE];
  1791.  
  1792.   goto yynewstate;
  1793.  
  1794. yyerrlab:   /* here on detecting error */
  1795.  
  1796.   if (! yyerrstatus)
  1797.     /* If not already recovering from an error, report this error.  */
  1798.     {
  1799.       ++yynerrs;
  1800.  
  1801. #ifdef YYERROR_VERBOSE
  1802.       yyn = yypact[yystate];
  1803.  
  1804.       if (yyn > YYFLAG && yyn < YYLAST)
  1805.     {
  1806.       int size = 0;
  1807.       char *msg;
  1808.       int x, count;
  1809.  
  1810.       count = 0;
  1811.       /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
  1812.       for (x = (yyn < 0 ? -yyn : 0);
  1813.            x < (sizeof(yytname) / sizeof(char *)); x++)
  1814.         if (yycheck[x + yyn] == x)
  1815.           size += strlen(yytname[x]) + 15, count++;
  1816.       msg = (char *) malloc(size + 15);
  1817.       if (msg != 0)
  1818.         {
  1819.           strcpy(msg, "parse error");
  1820.  
  1821.           if (count < 5)
  1822.         {
  1823.           count = 0;
  1824.           for (x = (yyn < 0 ? -yyn : 0);
  1825.                x < (sizeof(yytname) / sizeof(char *)); x++)
  1826.             if (yycheck[x + yyn] == x)
  1827.               {
  1828.             strcat(msg, count == 0 ? ", expecting `" : " or `");
  1829.             strcat(msg, yytname[x]);
  1830.             strcat(msg, "'");
  1831.             count++;
  1832.               }
  1833.         }
  1834.           yyerror(msg);
  1835.           free(msg);
  1836.         }
  1837.       else
  1838.         yyerror ("parse error; also virtual memory exceeded");
  1839.     }
  1840.       else
  1841. #endif /* YYERROR_VERBOSE */
  1842.     yyerror("parse error");
  1843.     }
  1844.  
  1845.   goto yyerrlab1;
  1846. yyerrlab1:   /* here on error raised explicitly by an action */
  1847.  
  1848.   if (yyerrstatus == 3)
  1849.     {
  1850.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  1851.  
  1852.       /* return failure if at end of input */
  1853.       if (yychar == YYEOF)
  1854.     YYABORT;
  1855.  
  1856. #if YYDEBUG != 0
  1857.       if (yydebug)
  1858.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  1859. #endif
  1860.  
  1861.       yychar = YYEMPTY;
  1862.     }
  1863.  
  1864.   /* Else will try to reuse lookahead token
  1865.      after shifting the error token.  */
  1866.  
  1867.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  1868.  
  1869.   goto yyerrhandle;
  1870.  
  1871. yyerrdefault:  /* current state does not do anything special for the error token. */
  1872.  
  1873. #if 0
  1874.   /* This is wrong; only states that explicitly want error tokens
  1875.      should shift them.  */
  1876.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  1877.   if (yyn) goto yydefault;
  1878. #endif
  1879.  
  1880. yyerrpop:   /* pop the current state because it cannot handle the error token */
  1881.  
  1882.   if (yyssp == yyss) YYABORT;
  1883.   yyvsp--;
  1884.   yystate = *--yyssp;
  1885. #ifdef YYLSP_NEEDED
  1886.   yylsp--;
  1887. #endif
  1888.  
  1889. #if YYDEBUG != 0
  1890.   if (yydebug)
  1891.     {
  1892.       short *ssp1 = yyss - 1;
  1893.       fprintf (stderr, "Error: state stack now");
  1894.       while (ssp1 != yyssp)
  1895.     fprintf (stderr, " %d", *++ssp1);
  1896.       fprintf (stderr, "\n");
  1897.     }
  1898. #endif
  1899.  
  1900. yyerrhandle:
  1901.  
  1902.   yyn = yypact[yystate];
  1903.   if (yyn == YYFLAG)
  1904.     goto yyerrdefault;
  1905.  
  1906.   yyn += YYTERROR;
  1907.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  1908.     goto yyerrdefault;
  1909.  
  1910.   yyn = yytable[yyn];
  1911.   if (yyn < 0)
  1912.     {
  1913.       if (yyn == YYFLAG)
  1914.     goto yyerrpop;
  1915.       yyn = -yyn;
  1916.       goto yyreduce;
  1917.     }
  1918.   else if (yyn == 0)
  1919.     goto yyerrpop;
  1920.  
  1921.   if (yyn == YYFINAL)
  1922.     YYACCEPT;
  1923.  
  1924. #if YYDEBUG != 0
  1925.   if (yydebug)
  1926.     fprintf(stderr, "Shifting error token, ");
  1927. #endif
  1928.  
  1929.   *++yyvsp = yylval;
  1930. #ifdef YYLSP_NEEDED
  1931.   *++yylsp = yylloc;
  1932. #endif
  1933.  
  1934.   yystate = yyn;
  1935.   goto yynewstate;
  1936. }
  1937. #line 631 "./ldgram.y"
  1938.  
  1939. void
  1940. yyerror(arg) 
  1941.      const char *arg;
  1942.   if (ldfile_assumed_script)
  1943.     einfo ("%P:%s: file format not recognized; treating as linker script\n",
  1944.        ldfile_input_filename);
  1945.   if (error_index > 0 && error_index < ERROR_NAME_MAX)
  1946.      einfo ("%P%F:%S: %s in %s\n", arg, error_names[error_index-1]);
  1947.   else
  1948.      einfo ("%P%F:%S: %s\n", arg);
  1949. }
  1950.